import json

data = []
data.append({
    "name": "小明",
    "height": "170",
    "age": "18"
})
data.append({
    "name": "小红",
    "height": "165",
    "age": "20"
})

# 把python类型的数据转换成json字符串
lit = json.dumps(data)
print(type(lit))
print(lit)
